<?php
/**
 *  This file is part of CI-ActiveRecord
 *
 *  CI-ActiveRecord is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  CI-ActiveRecord is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with CI-ActiveRecord.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * ActiveRecord_Listener_Interface
 *
 * @package     ActiveRecord
 * @subpackage  Event
 */
interface ActiveRecord_Listener_Interface 
{
    public function preCreate(ActiveRecord_Event $event);

    public function postCreate(ActiveRecord_Event $event);

    public function preSave(ActiveRecord_Event $event);

    public function postSave(ActiveRecord_Event $event);

    public function preUpdate(ActiveRecord_Event $event);

    public function postUpdate(ActiveRecord_Event $event);
    
    public function preDelete(ActiveRecord_Event $event);

    public function postDelete(ActiveRecord_Event $event);
    
    public function preDeleteAll(ActiveRecord_Event $event);

    public function postDeleteAll(ActiveRecord_Event $event);
}